package com.bandit.service.impl;

import com.bandit.dao.BloggerDao;
import com.bandit.pojo.Blogger;
import com.bandit.service.BloggerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BloggerServiceImpl implements BloggerService {

    @Autowired
    BloggerDao bloggerDao;

    @Override
    public Blogger getDetailsBySession(String username) {
        return bloggerDao.getDetailsBySession(username);
    }

    @Override
    public void ModifyPassword(String username, String password) {
        bloggerDao.ModifyPassword(username,password);
    }
}
